<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 首页
Route::any('/',function (){
    return redirect('wiki');
});

Route::group('v1',function (){
    Route::any('user/sendCode','api/User/sendCode');
    Route::resource('user','api/User');
});

Route::any('accessToken','api/auth/accessToken');//Oauth
// 文档
\DawnApi\route\DawnRoute::wiki();

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
];
